package com.key.w8.http1.handler.codec;

import com.key.w8.http1.entity.HttpRequest;
import com.key.w8.http1.entity.HttpResponse;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.FullHttpResponse;

/**
 * @Author: k8
 * @CreateTime: 2025-03-27
 * @Version: 1.0
 * 用于处理出栈数据
 */
public interface HttpObjectClientResolver {
    boolean canResolverRequestOut(HttpRequest httpRequest);
    FullHttpRequest resolverRequestOut(HttpRequest httpRequest, ByteBufAllocatorHolder allocatorHolder);
    boolean canResolverResponseIn(FullHttpResponse fullHttpResponse);
    HttpResponse resolverResponseIn(FullHttpResponse fullResponse);
}
